﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Web;

/// <summary>
///DbClass 的摘要说明
/// </summary>
public class DbClass
{
	public SqlConnection getSqlConnection()
	{
		try
		{
			string connectionString = System.Configuration.ConfigurationManager.AppSettings["SqlConnectionString"];
			SqlConnection connection = new SqlConnection(connectionString);
			return connection;
		}
		catch (Exception exception)
		{

			throw new Exception(exception.Message);
		}

	}

}
